﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CambiarPass.aspx.cs" Inherits="ForrajeriaFRONT.Account.CambiarPass" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Cambiar Password</title>
    <style type="text/css">
        .cuerpo
        {
            font: 62.5%/2.2em Arial, Tahoma, Verdana,Helvetica, sans-serif;
            
            width:100%;
            height:100%;
            color: #4b4942;
            background:#404639 url(../images/bg_patterns.gif);  
                      
        }
        
        .titulo
        {
            color:Black;
            border-color:#E6E2D8;
            BackColor="#F7F6F3" 
            
        }
           
        .usuario
        {
            color:Gray;
        }
        
        .style1
        {
            width: 127px;
        }
        
     </style>

</head>
<body class="cuerpo">
    <form id="form1" runat="server">
     <center>
     
    <div >
   
 <asp:Label ID="lblMensaje" runat="server" Width="120px" Font-Size="Larger" ForeColor="Red" Visible="false"></asp:Label>
 <br />
 <br />

      
           
            
                  <table cellpadding="4" cellspacing="0" style="border-collapse:collapse; background-color:#C0C0C0" border="1">
                    <tr>
                        <td>
                            <table cellpadding="0" style="height:333px;width:421px;">
                                <tr>
                                    <td align="center" colspan="3" 
                                        style="color:White;background-color:#5D7B9D;font-size:x-large;font-weight:bold;">
                                        Modificar Contraseña</td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName" Text="Usuario" Font-Size="Large"></asp:Label>
                                    </td>
                                    <td colspan="2">
                                        <asp:TextBox ID="UserName" runat="server" Enabled="False"></asp:TextBox>
                                      
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="CurrentPasswordLabel" runat="server" 
                                            AssociatedControlID="CurrentPassword" Font-Size="Large" >Constraseña:</asp:Label>
                                    </td>
                                    <td class="style1" colspan="2">
                                        <asp:TextBox ID="CurrentPassword" runat="server" 
                                            TextMode="Password"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="CurrentPasswordRequired" runat="server" 
                                            ControlToValidate="CurrentPassword" ErrorMessage="Constraseña requerida" 
                                            ToolTip="Constraseña requerida" ValidationGroup="ChangePassword1">*</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="NewPasswordLabel" runat="server" 
                                            AssociatedControlID="NewPassword" Font-Size="Large">Nueva Constraseña:</asp:Label>
                                    </td>
                                    <td class="style1" colspan="2" >
                                        <asp:TextBox ID="NewPassword" runat="server" 
                                            TextMode="Password"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="NewPasswordRequired" runat="server" 
                                            ControlToValidate="NewPassword" ErrorMessage="Nueva Contraseña es requerida" 
                                            ToolTip="Nueva Contraseña es requerida" ValidationGroup="ChangePassword1">*</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="ConfirmNewPasswordLabel" runat="server" 
                                            AssociatedControlID="ConfirmNewPassword" Font-Size="Large">Confimar Nueva Contraseña:</asp:Label>
                                    </td>
                                    <td class="style1" colspan="2" >
                                        <asp:TextBox ID="ConfirmNewPassword" runat="server" 
                                            TextMode="Password"></asp:TextBox>
                                        <asp:RequiredFieldValidator ID="ConfirmNewPasswordRequired" runat="server" 
                                            ControlToValidate="ConfirmNewPassword" ValidationGroup="ChangePassword1">*</asp:RequiredFieldValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" colspan="3">
                                        <asp:CompareValidator ID="NewPasswordCompare" runat="server" 
                                            ControlToCompare="NewPassword" ControlToValidate="ConfirmNewPassword" 
                                            Display="Dynamic" ErrorMessage="Las Contraseñas nos coinciden" 
                                            ValidationGroup="ChangePassword1" Font-Size="Large"></asp:CompareValidator>
                                    </td>
                                </tr>
                              
                                <tr>
                                    <td align="right" >
                                                                            <asp:Button ID="btnInicio" runat="server" BackColor="#FFFBFF" 
                                            BorderColor="#CCCCCC" BorderStyle="Solid" BorderWidth="1px" 
                                            Font-Names="Verdana"  
                                            ForeColor="#284775" Height="35px" Text="Inicio" 
                                            CausesValidation="false" Width="90px" onclick="btnInicio_Click" 
                                            />
                                      </td>
                                      <td>
                                        <asp:Button ID="ChangePasswordPushButton" runat="server" BackColor="#FFFBFF" 
                                            BorderColor="#CCCCCC" BorderStyle="Solid" BorderWidth="1px" 
                                            CommandName="ChangePassword" Font-Names="Verdana"  
                                            ForeColor="#284775" Height="35px" Text="Cambiar" 
                                            ValidationGroup="ChangePassword1" Width="90px" 
                                            onclick="ChangePasswordPushButton_Click" />
                                      </td>
                                    <td  >
                                        <asp:Button ID="CancelPushButton" runat="server" BackColor="#FFFBFF" 
                                            BorderColor="#CCCCCC" BorderStyle="Solid" BorderWidth="1px" 
                                            CausesValidation="False" Font-Names="Verdana" 
                                             ForeColor="#284775" Height="35px" Text="Cancel" 
                                            Width="90px" onclick="CancelPushButton_Click1" />
                                    </td>
                                    <td>
                                                                            &nbsp;</td>
                                    
                              </tr>
                              
                            </table>
                        </td>
                    </tr>
                </table>

    </div>
      </center>
    </form>

</body>
</html>
